<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

return [
    // +----------------------------------------------------------------------
    // | 应用设置
    // +----------------------------------------------------------------------

    // 应用命名空间
    'app_namespace'          => 'app',
    // 应用调试模式
    'app_debug'              => true,
    // 应用Trace
    'app_trace'              => false,
    // 应用模式状态
    'app_status'             => '',
    // 是否支持多模块
    'app_multi_module'       => true,
    // 入口自动绑定模块
    'auto_bind_module'       => false,
    // 注册的根命名空间
    'root_namespace'         => [],
    // 扩展函数文件
    'extra_file_list'        => [THINK_PATH . 'helper' . EXT],
    // 默认输出类型
    'default_return_type'    => 'html',
    // 默认AJAX 数据返回格式,可选json xml ...
    'default_ajax_return'    => 'json',
    // 默认JSONP格式返回的处理方法
    'default_jsonp_handler'  => 'jsonpReturn',
    // 默认JSONP处理方法
    'var_jsonp_handler'      => 'callback',
    // 默认时区
    'default_timezone'       => 'PRC',
    // 是否开启多语言
    'lang_switch_on'         => false,
    // 默认全局过滤方法 用逗号分隔多个
    'default_filter'         => 'htmlspecialchars',
    // 默认语言
    'default_lang'           => 'zh-cn',
    // 应用类库后缀
    'class_suffix'           => false,
    // 控制器类后缀
    'controller_suffix'      => false,

    // +----------------------------------------------------------------------
    // | 模块设置
    // +----------------------------------------------------------------------

    // 默认模块名
    'default_module'         => 'home',
    // 禁止访问模块
    'deny_module_list'       => ['common', 'conf'],
    // 默认控制器名
    'default_controller'     => 'Index',
    // 默认操作名
    'default_action'         => 'index',
    // 默认验证器
    'default_validate'       => '',
    // 默认的空控制器名
    'empty_controller'       => 'Error',
    // 操作方法后缀
    'action_suffix'          => '',
    // 自动搜索控制器
    'controller_auto_search' => false,

    // +----------------------------------------------------------------------
    // | URL设置
    // +----------------------------------------------------------------------

    // PATHINFO变量名 用于兼容模式
    'var_pathinfo'           => 's',
    // 兼容PATH_INFO获取
    'pathinfo_fetch'         => ['ORIG_PATH_INFO', 'REDIRECT_PATH_INFO', 'REDIRECT_URL'],
    // pathinfo分隔符
    'pathinfo_depr'          => '/',
    // URL伪静态后缀
    'url_html_suffix'        => 'html',
    // URL普通方式参数 用于自动生成
    'url_common_param'       => false,
    // URL参数方式 0 按名称成对解析 1 按顺序解析
    'url_param_type'         => 0,
    // 是否开启路由
    'url_route_on'           => true,
    // 路由使用完整匹配
    'route_complete_match'   => false,
    // 路由配置文件（支持配置多个）
    'route_config_file'      => ['route'],
    // 是否强制使用路由
    'url_route_must'         => false,
    // 域名部署
    'url_domain_deploy'      => false,
    // 域名根，如thinkphp.cn
    'url_domain_root'        => '',
    // 是否自动转换URL中的控制器和操作名
    'url_convert'            => true,
    // 默认的访问控制器层
    'url_controller_layer'   => 'controller',
    // 表单请求类型伪装变量
    'var_method'             => '_method',
    // 表单ajax伪装变量
    'var_ajax'               => '_ajax',
    // 表单pjax伪装变量
    'var_pjax'               => '_pjax',
    // 是否开启请求缓存 true自动缓存 支持设置请求缓存规则
    'request_cache'          => false,
    // 请求缓存有效期
    'request_cache_expire'   => null,

    // +----------------------------------------------------------------------
    // | 模板设置
    // +----------------------------------------------------------------------

    'template'               => [
        // 模板引擎类型 支持 php think 支持扩展
        'type'         => 'Think',
        // 模板路径
        'view_path'    => '',
        // 模板后缀
        'view_suffix'  => 'html',
        // 模板文件名分隔符
        'view_depr'    => DS,
        // 模板引擎普通标签开始标记
        'tpl_begin'    => '{{',
        // 模板引擎普通标签结束标记
        'tpl_end'      => '}}',
        // 标签库标签开始标记
        'taglib_begin' => '<',
        // 标签库标签结束标记
        'taglib_end'   => '>',
    ],

    // 视图输出字符串内容替换
    'view_replace_str'       => [
        '__CSS__' => '/static/css',
        '__JS__' => '/static/js',
        '__IMG__' => '/static/img',
        '__PLUG__' => '/static/plugs',
        '__FONT__' => '/static/fonts',
        '__SOUND__' => '/static/fonts',
        '__UPLOADS__' => '/uploads/'
    ],
    // 默认跳转页面对应的模板文件
    'dispatch_success_tmpl'  => THINK_PATH . 'tpl' . DS . 'dispatch_jump.tpl',
    'dispatch_error_tmpl'    => THINK_PATH . 'tpl' . DS . 'dispatch_jump.tpl',

    // +----------------------------------------------------------------------
    // | 异常及错误设置
    // +----------------------------------------------------------------------

    // 异常页面的模板文件
    'exception_tmpl'         => THINK_PATH . 'tpl' . DS . 'think_exception.tpl',

    // 错误显示信息,非调试模式有效
    'error_message'          => '页面错误！请稍后再试～',
    // 显示错误信息
    'show_error_msg'         => false,
    // 异常处理handle类 留空使用 \think\exception\Handle
    'exception_handle'       => '',

    // +----------------------------------------------------------------------
    // | 日志设置
    // +----------------------------------------------------------------------

    'log'                    => [
        // 日志记录方式，内置 file socket 支持扩展
        'type'  => 'File',
        // 日志保存目录
        'path'  => LOG_PATH,
        // 日志记录级别
        'level' => [],
    ],

    // +----------------------------------------------------------------------
    // | Trace设置 开启 app_trace 后 有效
    // +----------------------------------------------------------------------
    'trace'                  => [
        // 内置Html Console 支持扩展
        'type' => 'Html',
    ],

    // +----------------------------------------------------------------------
    // | 缓存设置
    // +----------------------------------------------------------------------

    'cache'                  => [
        // 驱动方式
        'type'   => 'File',
        // 缓存保存目录
        'path'   => CACHE_PATH,
        // 缓存前缀
        'prefix' => '',
        // 缓存有效期 0表示永久缓存
        'expire' => 0,
    ],

    // +----------------------------------------------------------------------
    // | 会话设置
    // +----------------------------------------------------------------------

    'session'                => [
        'id'             => '',
        // SESSION_ID的提交变量,解决flash上传跨域
        'var_session_id' => '',
        // SESSION 前缀
        'prefix'         => 'think',
        // 驱动方式 支持redis memcache memcached
        'type'           => '',
        // 是否自动开启 SESSION
        'auto_start'     => true,
    ],

    // +----------------------------------------------------------------------
    // | Cookie设置
    // +----------------------------------------------------------------------
    'cookie'                 => [
        // cookie 名称前缀
        'prefix'    => '',
        // cookie 保存时间
        'expire'    => 0,
        // cookie 保存路径
        'path'      => '/',
        // cookie 有效域名
        'domain'    => '',
        //  cookie 启用安全传输
        'secure'    => false,
        // httponly设置
        'httponly'  => '',
        // 是否使用 setcookie
        'setcookie' => true,
    ],

    //分页配置
    'paginate'               => [
        'type'      => 'bootstrap',
        'var_page'  => 'page',
        'list_rows' => 15,
    ],

    //用户密码关键字,(不可改动,否则已注册用户无法登录)
    'YOUNG_USER_PASKEY'=>'ferr_',
    //用户登录次数过多,一定时间内不能登录 (单位：分钟)
    'CHECK_OUT_TIME'=> 10,
    //用户登录次数过多时,次数限制
    'CHECK_NUM'=>5,
    //验证码过期时间
    'CHECK_TIME'=>5,
    //设备在线告知时间判断 (秒)
    'DEV_TIMES_ONLINE'=>1800,

    //微信设备二维码保存地址
    "WETCHAT_CODE"=>"uploads/wetchat/",
    //微信配置
    "WECTAT_TOKEN" => "123456",
    "WECHAT_APPID" => "wx44c6aee31afe6678",
    "WECHAT_APPSERVER" => "c9254c35c71a9af86642a898bd9305ac",

    //微信测试
    // "WECHAT_APPID" => "wxcc519db5dc620ef9",
    // "WECHAT_APPSERVER" => "c98a5a852660121ead52cac32104da98",


    //微信支付回调地址
    "WECHAT_NOTIFY_URL"=>"http://ferr.mydehui.com/wxpay.php",

    //AES加密秘钥
    'AES_KEYS' =>'a1w35d64r9g7y6hu',
    

    //默认30%概率
    'CHANCE'=>30,
    //生成guid1的后几位长度
    "GUID1_LEN" =>4,
    //加密固定字符串
    "AES_DATA_STRING"=>"FE123",
    
    //smtp配置
    'EMAIL_SMTP'      => '',
    'EMAIL_USERNAME'  => '',
    'EMAIL_PASSWORD'  => '',
    'EMAIL_FROM_NAME' => '',

    //手机短信配置
    "SMS_APPKEY"=>"23782543",  //短信appkey
    "SMS_SECRET"=>"89758baaccd8b7731a3a25c36b861b67", //短信secret
    "SMS_SIGNNAME"=>"福瑞至物联网", //标签名
    "SMS_REGISTER_MODELID"=>"SMS_63780107", //模板ID 用于注册
    "SMS_STATUS_MODELID"=>"SMS_63780111", //模板id  用户身份验证
    "SMS_PRODUCT"=>"福瑞至",//模本内容 (您正在进行$product 身份验证)

    //职位
    'PLACE' =>[
        'PLACE_BOARD' => ['id'=>1,'name'=>'董事会'],
        'PLACE_CEO' => ['id'=>2,'name'=>'董事长兼总裁'],
        'PLACE_CEO_TANT' => ['id'=>3,'name'=>'总裁助理'],
        'PLACE_HANDER' => ['id'=>4,'name'=>'总经理'],
        'PLACE_AD_HANDER' => ['id'=>5,'name'=>'行政中心总监'],
        'PLACE_FINANCE' => ['id'=>6,'name'=>'财务中心总监'],
        'PLACE_BUSIN' => ['id'=>7,'name'=>'业务中心总监'],
        'PLACE_ENGIN'=>['id'=>8,'name'=>'工程中心总监'],
        'PLACE_RESEARCH'=>['id'=>9,'name'=>'研发中心总监'],
        'PLACE_PERMAN'=>['id'=>10,'name'=>'行政人事部'],
        'PLACE_REARS'=>['id'=>11,'name'=>'后勤部'],
        'PLACE_PLANN'=>['id'=>12,'name'=>'企划部主管'],
        'PLACE_PERMAN_COMM'=>['id'=>13,'name'=>'人事部专员'],
        'PLACE_REARS_BUY'=>['id'=>14,'name'=>'后勤部采购'],
        'PLACE_REARS_MERCHANT'=>['id'=>15,'name'=>'后勤部商务助理'],
        'PLACE_PLANN_DESIGN'=>['id'=>16,'name'=>'企划部平面设计'],
        'PLACE_PLANN_PLAN'=>['id'=>17,'name'=>'企划部策划文案'],
        'PLACE_PLANN_NET'=>['id'=>18,'name'=>'企划部网络'],
        'PLACE_FINANCE_REM'=>['id'=>19,'name'=>'财务部会计'],
        'PLACE_FINANCE_TAX'=>['id'=>20,'name'=>'财务部财税规划'],
        'PLACE_FINANCE_CAS'=>['id'=>21,'name'=>'财务部出纳'],
        'PLACE_BUSIN_STR'=>['id'=>22,'name'=>'业务直客部'],
        'PLACE_BUSIN_CHA'=>['id'=>23,'name'=>'业务渠道部'],
        'PLACE_BUSIN_CS'=>['id'=>24,'name'=>'业务客服部'],
        'PLACE_STR_HANDER'=>['id'=>25,'name'=>'直客部主管'],
        'PLACE_STR_CER'=>['id'=>26,'name'=>'直客部专员'],
        'PLACE_CHA_HANDER'=>['id'=>27,'name'=>'渠道部主管'],
        'PLACE_CHA_CER'=>['id'=>28,'name'=>'渠道部专员'],
        'PLACE_CS_HANDER'=>['id'=>29,'name'=>'客服部主管'],
        'PLACE_CS_CER'=>['id'=>30,'name'=>'客服部专员'],
        'PLACE_ENGIN_MER'=>['id'=>31,'name'=>'单体施工'],
        'PLACE_ENGIN_CEN'=>['id'=>32,'name'=>'中央施工'],
        'PLACE_ENGIN_CTE'=>['id'=>33,'name'=>'冷库施工'],
        'PLACE_MER_HANDER'=>['id'=>34,'name'=>'单体施工主管'],
        'PLACE_MER_ENG'=>['id'=>35,'name'=>'单体施工工程师'],
        'PLACE_ENGIN_HAN'=>['id'=>36,'name'=>'中央施工主管'],
        'PLACE_HAN_ENG'=>['id'=>37,'name'=>'中央施工工程师'],
        'PLACE_CTE_HANDER'=>['id'=>38,'name'=>'冷库施工主管'],
        'PLACE_CTE_ENG'=>['id'=>39,'name'=>'冷库施工工程师'],
        'PLACE_RES_EXP'=>['id'=>40,'name'=>'研发部实验'],
        'PLACE_RES_RAD'=>['id'=>41,'name'=>'研发部研发'],
        'PLACE_CPER'=>['id'=>42,'name'=>'合作伙伴'],
        'PLACE_CPER_ONE'=>['id'=>43,'name'=>'个人合伙人'],
        'PLACE_AGEN'=>['id'=>44,'name'=>'经纪人'],
        'PLACE_AGC'=>['id'=>45,'name'=>'代理商'],
        'PLACE_AGC_P'=>['id'=>46,'name'=>'省级代理商'],
        'PLACE_AGC_C'=>['id'=>47,'name'=>'市级代理商'],
        'PLACE_AGC_A'=>['id'=>48,'name'=>'区级代理商'],
        'PLACE_RMAN'=>['id'=>49,'name'=>'资源人'],
        'PLACE_RMAN_OPEN'=>['id'=>50,'name'=>'公开资源人'],
        'PLACE_RMAN_AYS'=>['id'=>51,'name'=>'匿名资源人'],
        'PLACE_ABD_ENG'=>['id'=>52,'name'=>'外部工程师'],
        'PLACE_ABD_THY'=>['id'=>53,'name'=>'外部技术人员'],
        'PLACE_MTES'=>['id'=>54,'name'=>'维保人员'],
        'PLACE_ABD_MTES'=>['id'=>55,'name'=>'外部维保人员'],
        'PLACE_ABD_MANS'=>['id'=>56,'name'=>'外包工程商'],
        'PLACE_O_MANS'=>['id'=>57,'name'=>'一级工程商'],
        'PLACE_T_MANS'=>['id'=>58,'name'=>'二级工程商'],
        'PLACE_S_MANS'=>['id'=>59,'name'=>'三级工程商'],
    ],

    'ACCESS' => [
        'index' => [
			'name'  => '个人中心',
			'url'   => 'index/index',
            'funs'  => ['index', 'msglist', 'mread', 'delmsg'],
			'permit'=> [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]
		],
        'user' => [
			'name'  => '用户管理',
			'url'   => 'index/index',
            'funs'  => ['index', 'add', 'setStatus', 'areas', 'checkPass', 'info', 'isban', 'profile', 'apply', 'review', 'review_resource_man'],
			'permit'=> [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]
		],
        'order' => [
			'name'  => '订单管理',
			'url'   => 'index/index',
            'funs'  => [],
			'permit'=> [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]
		],
        'product' => [
			'name'  => '产品管理',
			'url'   => 'index/index',
            'funs'  => ['lists', 'examine', 'sendlist', 'logistics', 'getlogistic', 'getresponseinfo', 'receipt', 'loginfo', 'oinfos', 'ginfos', 'exinfos', 'exginfos', 'isexamine', 'inquiry', 'copy', 'rework', 'modify', 'ginquiry', 'gcopy'],
			'permit'=> [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]
		],
        'sys' => [
			'name'  => '系统设置',
			'url'   => 'index/index',
            'funs'  => ['menu', 'parentNode', 'mdis'],
			'permit'=> [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]
		],
        'counts' => [
			'name'  => '统计管理',
			'url'   => 'index/index',
            'funs'  => ['lists', 'flow'],
			'permit'=> [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]
		],
    ]

];
